package com.livew.framework.base.service;

import java.util.List;
import java.util.Map;

import com.livew.framework.exception.XTBusinessException;
import com.livew.framework.page.PagedResult;

public interface BaseService<T> {
	
	T getByPrimaryKey(Long id) throws XTBusinessException;
	
	int delByPrimaryKey(T record) throws XTBusinessException;
	
	void save(T record) throws XTBusinessException;

	void saveSelective(T record) throws XTBusinessException;

	void updateByPrimaryKeySelective(T record) throws XTBusinessException;

	void updateByPrimaryKey(T record) throws XTBusinessException;
	
	List<T> getListByCondition(T record);
	
	List<T> getChcekInfoByCondition(T record);
	
	Map<Long,T> getMapByIdList(List<Long> ids);

	void updateStatus(T t) throws XTBusinessException;

	PagedResult<T> findPagination(T t);
	
	List<T> getAll();
	
}
